<?php

App::uses('Tweet', 'Model');

class TweetTest extends CakeTestCase {

	public function setUp() {
        parent::setUp();
        $this->Tweet = ClassRegistry::init('Tweet');
    }
	public function testcheckReplyspaces(){
	$result = $this->Tweet->checkReplyspaces('@sherif       ','@sherif');
	$this->assertFalse($result);
	$result = $this->Tweet->checkReplyspaces('@sherif','@sherif');
	$this->assertFalse($result);
	$result = $this->Tweet->checkReplyspaces('@sherif      s ','@sherif');
	$this->assertTrue($result);
	}
	}